package com.fowo.api.model.inventory.placement.r;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fowo.api.common.excel.ImageConvert;
import com.fowo.api.sys.entity.SysFile;
import java.util.List;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 库存货位放置表 导入导出辅助模型 */
@Getter
@Setter
public class InventoryPlacementRExcelPo {

  @ExcelProperty(value = "保质期(天)")
  private Long shelfLife;

  @ExcelProperty(value = "在途数量")
  private java.math.BigDecimal wayQty;

  @ExcelProperty(value = "锁定数量")
  private java.math.BigDecimal lockQty;

  @Size(max = 255, message = "fnsku长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "fnsku")
  private String fnSku;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "店铺")
  private String shopIdShopName;

  @ExcelIgnore
  @ExcelProperty(value = "店铺")
  private Long shopId;

  @ExcelProperty(value = "数据版本")
  private Long version;

  @ExcelProperty(value = "辅助数量")
  private java.math.BigDecimal auxQty;

  @ExcelProperty(value = "辅助计量内码")
  private Long auxId;

  @ExcelProperty(value = "库存金额")
  private java.math.BigDecimal stockAmount;

  @ExcelProperty(value = "库存数量")
  private java.math.BigDecimal stockQty;

  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "有效期至")
  private java.util.Date expiryDate;

  @DateTimeFormat("yyyy年MM月dd日")
  @ExcelProperty(value = "生产日期")
  private java.util.Date productionDate;

  @Size(max = 50, message = "批号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "批号")
  private String batchNo;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "物料内码")
  private String itemIdName;

  @ExcelIgnore
  @ExcelProperty(value = "物料内码")
  private Long itemId;

  @Size(max = 50, message = "SKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "SKU")
  private String sku;

  @Size(max = 100, message = "图片长度不能超过20")
  @ExcelProperty(value = "图片", converter = ImageConvert.class)
  private List<SysFile> picUrl;

  @ExcelProperty(value = "项目内码")
  private Long projectId;

  @ExcelProperty(value = "库位内码")
  private Long binId;

  @ExcelProperty(value = "仓库内码")
  private Long stockId;
}
